package com.jhhc.RHDB.Data.Pojo;

import java.util.ArrayList;
import java.util.List;

public class PPGetData {


    //项目编号
    private int pid;

    //单位
    private String unit;
    //站名集合
    private List<Data> stationInfos;
    //多站报表数据
    private List<PPData> PPDataList;

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public List<Data> getStationInfos() {
        return stationInfos;
    }

    public void setStationInfos(List<Data> stationInfos) {
        this.stationInfos = stationInfos;
    }


//    public List<Data> getStationInfos() {
//        return stationInfos;
//    }
    List<Data> stationInfo = new ArrayList<>();
    public void setStationInfos(Data data) {
        stationInfo.add(data);
        this.stationInfos = stationInfo;
    }

    @Override
    public String toString() {
        return "PPGetData{" +
                "pid=" + pid +
                ", unit='" + unit + '\'' +
                ", stationInfos=" + stationInfos +
                ", PPDataList=" + PPDataList +
                ", stationInfo=" + stationInfo +
                ", multiStationRainfallDatas1=" + multiStationRainfallDatas1 +
                '}';
    }

    public List<PPData> getPPDataList() {
        return PPDataList;
    }

    public void setPPDataList(List<PPData> PPDataList) {
        this.PPDataList = PPDataList;
    }

    List<PPData> multiStationRainfallDatas1 = new ArrayList<>();
    public void setPPDataList(PPData  multiStationRainfallData) {
        multiStationRainfallDatas1.add(multiStationRainfallData);
        this.PPDataList = multiStationRainfallDatas1;
    }

}
